# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=tckfc
pkgver=23.911e92e
pkgrel=3
groups=('blackarch' 'blackarch-cracker')
pkgdesc='TrueCrypt key file cracker.'
arch=('any')
url='https://github.com/Octosec/tckfc'
license=('MIT')
depends=('python2' 'truecrypt')
makedepends=('git')
source=("git+https://github.com/Octosec/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

